<template>
  <div id="videoPlayer_html5_api"></div>
</template>

<script>

export default {
  props:{
    options:Object
  },
  data() {
    return {
      player:null
    }
  },
  mounted() {
    console.log(this.options)
    this.player = new Aliplayer(
        {
          id: "videoPlayer_html5_api",
          source: this.options.pc_play_url,
          autoplay: true,
          width: "100%",
          height: "100%",
          qualitySort: "asc",
          encryptType: 1,
          mediaType: "video",
          isLive: false,
          rePlay: false,
          playsinline: true,
          preload: true,
          controlBarVisibility: "hover",
          useH5Prism: true,
        },
        function(player) {
          player.play();
        }
      );
  }
}
</script>

<style>

</style>